<table class="gcb-student-data-table">
  <colgroup>
    <col style="width: 10%">
    <col>
  </colgroup>
  <tr>
    <th align="left">{{ gettext('Date enrolled') }}</th>
    <td>{{ date_enrolled }}</td>
  </tr>
  <tr>
    <th align="left">{{ gettext('Email') }}</th>
    <td>{{ student.key().name() }}</td>
  </tr>
  <tr>
    <th align="left">{{ gettext('Name') }}</th>
    <td>{{ student_name }}</td>
  </tr>
  <tr>
    <th align="left">Age</th>
    <td>{{ student_age }}</td>
  </tr>
  <tr>
    <th align="left">Education</th>
    <td>{{ student_education }}</td>
  </tr>
  <tr>
    <th align="left">Profession</th>
    <td>{{ student_profession }}</td>
  </tr>
  <tr>
    <th align="left">Motivation</th>
    <td>{{ student_motivation }}</td>
  </tr>
  <tr>
    <th align="left" colspan=2>
    	Assessment Scores/Reviews
    </th>
  </tr>
  {% for assessment in score_list %}
    <tr>
      <th align="left">&nbsp;&nbsp;&nbsp;{{ assessment['title'] }}</th>
      <td>
        {% if assessment['human_graded'] %}
          <a href="assessment?name={{ assessment.id }}">
            {% if assessment['completed'] %}
            	Completed
            {% else %}
                View assignment
            {% endif %}
          </a>
        {% elif 'score' in assessment and assessment['score'] is defined %}
        	{% if assessment['title'] == 'Survey' %}
            	{% if assessment['score'] > 0 %}
            		<span id="assessment-score-Survey">Completed</span>
                {% else %}
                	<span id="assessment-score-Survey">Not completed yet</span>
                {% endif %}
            {% else %}
				<span id="assessment-score-{{assessment['title']}}">{{ assessment['score'] }}</span>
            {% endif %}
        {% endif %}
      </td>
    </tr>
  {% endfor %}

  {% if overall_score != None %}
    <tr>
      <th align="left">
      	{{ gettext('Overall course progress') }}
      </th>
      <td>
      	{% if overall_score > 0 and is_completed %}
	        <span id="assessment-score-overall">Completed</span>
        {% else %}
        	<span id="assessment-score-overall">In progress</span>
        {% endif %}
      </td>
    </tr>
  {% endif %}  
</table>